package com.yenlien.traceyun.webase.exception;

/**
 * 服务异常
 */
public class RestException extends RuntimeException {

    private String code;


    public RestException(String message) {
        super(message);
    }

    public RestException(String code, String message) {
        super(message);
        this.code = code;
    }

    public RestException(String message, Throwable throwable) {
        super(message + "  throwable:" + throwable.getLocalizedMessage());
    }

    ;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
